import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'




//正伟路由
import xbfs from '../components/jzw/eight/xbfs.vue'
import jujia from '../components/jzw/eight/jujia.vue'
import meishi from '../components/jzw/eight/meishi.vue'
import gehuqingjie from '../components/jzw/eight/gehuqingjie.vue'
import muyin from '../components/jzw/eight/muyin.vue'
import yundonglvx from '../components/jzw/eight/yundonglvx.vue'
import smjd from '../components/jzw/eight/smjd.vue'
import cwsh from '../components/jzw/eight/cwsh.vue'
// import cart from '../components/LINK/cart.vue'
// import shouye from '../components/LINK/shouye.vue'
import fenlei from '../components/LINK/fenleicopy.vue'
import zhidemai from '../components/LINK/zhidemai.vue'
// import wode from '../components/LINK/wode.vue'
import newpeo from '../components/mxp/view/Mhome.vue'  //新人专项礼包二级路由
import error from '../components/mxp/view/Mere'//福利社二级路由
import newteam from '../components/mxp/view/New text.vue'
import faliy from '../components/mxp/view/family.vue'
import xpsf from '../components/jzw/eight/xpsf.vue'

//登录主页 
import item from '../components/yjj/views/mygeren.vue'
// 手机登录
import phonelogin from '../components/yjj/views/phonelogin.vue'
// 邮箱登录
import emitlogin from '../components/yjj/views/emitlogin.vue'
// 邮箱注册
import emitregister from '../components/yjj/views/emitregister.vue'
// 个人中心
import personal from '../components/yjj/views/personal.vue'
// 搜索栏  
import search from "../components/lmy/page/searchPage.vue"
//主页--我的订单
import myorder from '../components/yjj/personal-son.vue/myorder.vue'
//主页--账户管理
import myzhanghu from '../components/yjj/personal-son.vue/myzhanghu.vue'
//主页--我的手机号
import myphone from '../components/yjj/personal-son.vue/myphone.vue'
//主页--售后
import mysell from '../components/yjj/personal-son.vue/mysell.vue'
//主页--周六一起拼
import myspell from '../components/yjj/personal-son.vue/myspell.vue'
//周六一起拼--我的团
import mygroup from '../components/yjj/myspell/mygroup.vue'
//主页--邀请返利
import Invite from '../components/yjj/personal-son.vue/Invite.vue'
//主页---优先购
import first from '../components/yjj/personal-son.vue/first.vue'
//主页--积分中心
import integral from '../components/yjj/personal-son.vue/integral.vue'
//主页--会员
import plus from '../components/yjj/personal-son.vue/plus.vue'
// 主页--地址
import address from '../components/yjj/personal-son.vue/address.vue'
// 主页--支付
import zhif from '../components/yjj/personal-son.vue/zhif.vue'
// 主页--联系客服
import kefu from '../components/yjj/personal-son.vue/kefu.vue'
// 主页--意见
import yijian from '../components/yjj/personal-son.vue/yijian.vue'
// 主页--我的竞拍
import jingpai from '../components/yjj/personal-son.vue/jingpai.vue'
import shouye from '../components/yjj/views/shouye.vue'
//热门商品
import hotshop from '../components/mxp/view/hotshopping.vue'
import cartshop from '../components/mxp/components/catshop'
import shopping from "../components/mxp/components/shoping.vue";
import pgfive from '../components/mxp/view/pagesfive.vue'
import pgfour from '../components/mxp/view/pagesfoue.vue'
import pgone from '../components/mxp/view/pagesone.vue'
import pgseven from '../components/mxp/view/pagesseven.vue'
import pgsix from '../components/mxp/view/pagessix.vue'
import pgthree from '../components/mxp/view/pagesthree.vue'
import pgtwo from '../components/mxp/view/pagestwo.vue'
//练习数据传值 
// import save from '../components/mxp/components/hottwo.vue'








//详情页
import details from '../components/LINK/DetailsPage/details.vue'




Vue.use(VueRouter)

//刘美扬
import Home from "../components/lmy/page/home.vue";
import niceGoods from "../components/lmy/page/niceGoods.vue";
import mustBuy from "../components/lmy/page/mustBuy.vue";
import greenSpace from "../components/lmy/page/greenSpace.vue";
import selectBuy from "../components/lmy/page/selectBuy.vue";
import infogoods from "../components/lmy/page/infoGoods.vue";
import searchPage from "../components/lmy/page/searchPage.vue";
import searchresult from "../components/lmy/page/searchResult.vue";



import cart from '../components/lmy/page/cart.vue'

const routes = [
  //mxp
  {
    path: '/lhot',
    name: 'lhot',
    component: hotshop
  },
  
  {
    path: '/rhot',
    name: 'faly',
    component: faliy,
  },
  {
    path: '/carshop',
    name: 'carp',
    component: cartshop,
  },
  {
    path: '/shopp',
    name: 'shopp',
    component: shopping,
  },
  {
    path: '/pgsone',
    name: 'pgone',
    component: pgone,
  },
  {
    path: '/pgstwo',
    name: 'pgtwo',
    component: pgtwo,
  },
  {
    path: '/pgsthree',
    name: 'pgthree',
    component: pgthree,
  },
  {
    path: '/pgsfour',
    name: 'pgfour',
    component: pgfour,
  },
  {
    path: '/pgsfive',
    name: 'pgfive',
    component: pgfive,
  },
  {
    path: '/pgssix',
    name: 'pgsix',
    component: pgsix,
  },
  {
    path: '/pgsseven',
    name: 'pgseven',
    component: pgseven,
  },
  




  //正伟路由
  {
    path: '/xbfs',
    name: 'xbfs',
    component: xbfs
  },
  {
    path: '/jujia',
    name: 'jujia',
    component: jujia
  },
  {
    path: '/meishi',
    name: 'meishi',
    component: meishi
  },
  {
    path: '/gehuqingjie',
    name: 'gehuqingjie',
    component: gehuqingjie
  },
  {
    path: '/muyin',
    name: 'muyin',
    component: muyin
  },
  {
    path: '/yundonglvx',
    name: 'yundonglvx',
    component: yundonglvx
  },
  {
    path: '/smjd',
    name: 'smjd',
    component: smjd
  },
  {
    path: '/cwsh',
    name: 'cwsh',
    component: cwsh
  },


  // 正伟2月9日路由

  {
    path: '/xpsf',
    name: 'xpsf',
    component: xpsf
  },
  // 杨京京
  {
    path: '/my',
    name: 'my',
    component: item
  },
  {
    path: '/shouye',
    name: 'shouye',
    component: shouye
  },
  {
    path: '/search',
    name: 'search',
    component: search
  },
  {
    path: '/phonelogin',
    name: 'phonelogin',
    component: phonelogin

  },
  {
    path: '/emitlogin',
    name: 'emitlogin',
    component: emitlogin

  },
  {
    path: '/personal',
    name: 'personal',
    component: personal,
  },

  {
    path: "/myspell",
    name: 'myspell',
    component: myspell
  },
  {

    path: '/emitregister',
    name: "emitregister",
    component: emitregister
  },
  {
    path: '/myorder',
    name: "myorder",
    component: myorder
  },
  {
    path: '/myzhanghu',
    name: "myzhanghu",
    component: myzhanghu
  }, {
    path: '/myphone',
    name: "myphone",
    component: myphone
  },
  {
    path: '/mysell',
    name: "mysell",
    component: mysell
  },
  {
    path: '/mygroup',
    name: "mygroup",
    component: mygroup
  },
  {
    path: "/Invite",
    name: 'Invite',
    component: Invite
  },
  {
    path: "/first",
    name: 'first',
    component: first
  }, {
    path: '/integral',
    component: integral
  }, {
    path: '/plus',
    component: plus
  }, {
    path: '/address',
    component: address
  }, {
    path: '/zhif',
    component: zhif
  }, {
    path: '/kefu',
    component: kefu
  }, {
    path: '/yijian',
    component: yijian
  }, {
    path: '/jingpai',
    component: jingpai
  },





  //--------------刘美扬
  {
    path: '/',
    redirect: '/home',

  },
  {
    path: '/nicegoods',
    component: niceGoods,
  },
  {
    name: 'mustbuy',
    path: '/mustbuy',
    component: mustBuy,
  },
  {
    path: '/greenspace',
    component: greenSpace,
  },
  {
    path: '/selectbuy',
    component: selectBuy,
  },
  {
    path: '/infogoods',
    component: infogoods
  },
  {
    path: '/test',
    component: searchPage
  },
  {
    path: '/searchresult',
    component: searchresult
  },





  {

    path: '/xbfs',
    name: 'xbfs',
    component: xbfs
  },


  {
    path: '/home',
    name: 'shouye',
    component: Home
  },



  //新人专项礼包二级路由，可直接引入
  {
    path: '/new',
    name: 'new',
    component: newpeo
  },
  //福利社二级路由，直接引入
  {
    path: '/ere',
    name: 'ere',
    component: error
  },
  {
    path: '/team',
    name: 'team',
    component: newteam
  },

  {
    path: '/cart',
    name: 'cart',
    component: cart
  },
  {
    path: '/fenlei',
    name: 'fenlei',
    component: fenlei,

  },

  {
    path: '/zhidemai',
    name: 'zhidemai',
    component: zhidemai
  },
  // {
  //   path: '/wode',
  //   name: 'wode',
  //   component: wode
  // },
  //详情页
  {
    path: '/details',
    name: 'details',
    component: details
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
